# $OpenBSD: Makefile.template,v 1.77 2018/02/09 17:08:33 sthen Exp $

COMMENT =	search duckduckgo.com from command line

GH_ACCOUNT =	jarun
GH_PROJECT =	ddgr
GH_TAGNAME =	v1.2

CATEGORIES =	www

MAINTAINER =	Ljuba Nedeljkovic <ljuba.bsd@gmail.com>

# GPLv3
PERMIT_PACKAGE_CDROM =	Yes

PY_V =	3.6
# BUILD_DEPENDS =		lang/python/${PY_V}
RUN_DEPENDS =		x11/xsel \
					lang/python/${PY_V}

NO_TEST =		Yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ddgr ${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/ddgr.1 ${PREFIX}/man/man1

	${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions/
	${INSTALL_DATA} ${WRKSRC}/auto-completion/bash/ddgr-completion.bash \
		${PREFIX}/share/bash-completion/completions/ddgr
	${INSTALL_DATA_DIR} ${PREFIX}/share/fish/completions/
	${INSTALL_DATA} ${WRKSRC}/auto-completion/fish/ddgr.fish \
		${PREFIX}/share/fish/completions/
	${INSTALL_DATA_DIR} ${PREFIX}/share/zsh/site-functions/
	${INSTALL_DATA} ${WRKSRC}/auto-completion/zsh/_ddgr \
		${PREFIX}/share/zsh/site-functions/

.include <bsd.port.mk>
